package com.yww.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yww.entity.StuParam;
import com.yww.entity.Student;
import com.yww.mapper.StudentMapper;
import com.yww.service.IStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 雯雯yang
 * @since 2020-06-02
 */
@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements IStudentService {
    @Autowired
    StudentMapper studentMapper;
    @Override
    public Integer delStu(Integer id) {
        return studentMapper.delStu(id);
    }

    @Override
    public boolean updateBatch(Integer userId, String ids) {
        return studentMapper.updateBatch(userId,ids);
    }

    @Override
    public List<StuParam> getStuList(StuParam stuParam) {
        return studentMapper.getStuList(stuParam);
    }


    @Override
    public List<Student> exportStudent(String[] ids) {
        return studentMapper.exportStudent(ids);
    }

    @Override
    public List<StuParam> selectStuListByCon(StuParam stuParam) {
        return studentMapper.selectStuListByCon(stuParam);
    }

    @Override
    public List<StuParam> selectStuListByWWWCon(StuParam stuParam) {
        return studentMapper.selectStuListByWWWCon(stuParam);
    }

    @Override
    public Integer delBatchId(String[] ids) {
        return studentMapper.delBatchId(ids);
    }

    @Override
    public Integer updBatchId(String[] ids, Integer usersId) {
        return studentMapper.updBatchId(ids,usersId);
    }

    @Override
    public List<StuParam> getStuListDelete(StuParam stuParam) {
        return studentMapper.getStuListDelete(stuParam);
    }

    @Override
    public boolean updateBatchClass(Integer id, String ids) {
        String[] split = ids.split(",");
        return studentMapper.updateBatchClass(id,split);
    }

    @Override
    public List<StuParam> getStuListByIsPay(StuParam stuParam) {
        return studentMapper.getStuListByIsPay(stuParam);
    }


}
